package cn.itsource.pojo.dto;

import cn.itsource.constants.Constants;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;
import java.util.Date;


/**
 * <p>
 * 司机实名资料
 * </p>
 */
@Data
public class AuthApplyMaterialDto {

    @NotEmpty(message = "姓名为空")
    private String name;

    @NotEmpty(message = "性别为空")
    private String gender;

    private String idNumber;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date birthday;

    private String idcardAddress;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date idcardExpire;

    private String idcardFront;

    private String idcardBack;

    private String idcardHolding;

    private String carClass;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date drcardExpire;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date drcardIssueDate;

    private String drcardFront;

    private String drcardBack;

    private String drcardHolding;

    @Pattern(regexp = Constants.CHINA_PHONE_REGEX,message = "手机号格式错误")
    private String phone;

    @Email(message = "邮箱错误")
    private String email;

    private String mailAddress;

    private String contactName;

    private String contactPhone;


}
